Skip to content

feat(frontend): add stream templates with local persistence and polis…#153

Merged
ogazboiz merged 5 commits intoLabsCrypt:mainfrom
Favourof:feat/saved-stream-template
Feb 24, 2026
Merged

feat(frontend): add stream templates with local persistence and polis…#153
ogazboiz merged 5 commits intoLabsCrypt:mainfrom
Favourof:feat/saved-stream-template

Conversation

@Favourof
Copy link
Copy Markdown
Contributor

Summary

This PR adds reusable stream templates to the Outgoing flow and upgrades the Create Stream UX.

What’s Included

  • Added a full Create Stream experience in the Outgoing tab.
  • Added template CRUD for stream configurations:
    • Create/save template from current form
    • Edit existing template
    • Delete template
    • Apply template to prefill form
  • Added local persistence for templates via localStorage.
  • Added template picker inside the form for faster prefill.
  • Preserved override behavior: users can edit any prefilled value before submission.
  • Added /app route entry to render the wallet/dashboard flow.
  • Improved UI/UX with:
    • Better spacing and typography hierarchy
    • Clearer status/feedback messages (info, success, error)
    • Stronger action hierarchy (including destructive delete styling)
    • Better responsive/mobile layout and touch ergonomics

Acceptance Criteria Mapping

  • Users can create, edit, and delete templates: ✅
  • Users can save current create stream form as a template: ✅
  • Templates are persisted locally: ✅
  • Users can select a template to prefill the form: ✅
  • Creating from a template still allows overrides before submission: ✅

Files Changed

  • frontend/components/dashboard/dashboard-view.tsx
  • frontend/app/globals.css
  • frontend/app/app/page.tsx

How to Test

  1. Run frontend:
    • cd frontend
    • npm install
    • npm run dev
  2. Open http://localhost:3000/app.
  3. Connect using a mock path (e.g. Albedo/xBull) or preload local session.
  4. Go to Outgoing and verify:
    • Save template from filled form
    • Apply template and see fields prefilled
    • Edit template and confirm updates
    • Delete template and confirm removal
    • Modify prefilled values before clicking Review Stream
    • Refresh page and confirm templates persist

Notes

Copy link
Copy Markdown
Contributor

@ogazboiz ogazboiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey, thanks for implementing the stream details screen! the [id]/page.tsx dynamic route is the right approach for Next.js.

a couple of things to fix before we can merge: there are merge conflicts with main (git fetch origin && git rebase origin/main). also, there's a file called frontend/app/streams/n in the diff — looks like an accidental commit, could you remove it? once those two things are sorted this looks ready!

Copy link
Copy Markdown
Contributor

@ogazboiz ogazboiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey, thanks for the stream templates feature — local persistence is a nice touch!

just a couple things to sort out before this can be merged: the PR is currently conflicting with main so you'll need to do git fetch origin && git rebase origin/main and force push. also, i noticed a pnpm-lock.yaml file in the diff — the project uses npm so could you delete that and run npm install to update the package-lock.json instead? otherwise it'll cause confusion for other contributors down the line

@Favourof
Copy link
Copy Markdown
Contributor Author

Okay i will Address the the conflict

@Favourof Favourof force-pushed the feat/saved-stream-template branch from cf8d4eb to f3454db Compare February 24, 2026 13:09
@Favourof
Copy link
Copy Markdown
Contributor Author

@ogazboiz conflict resolved

@Favourof
Copy link
Copy Markdown
Contributor Author

@ogazboiz conflict resolved

@ogazboiz
Copy link
Copy Markdown
Contributor

@ogazboiz conflict resolved

looks great, merging this in! thanks for the contribution

@ogazboiz ogazboiz merged commit f9478ef into LabsCrypt:main Feb 24, 2026
4 checks passed
@Favourof
Copy link
Copy Markdown
Contributor Author

You are welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend: Saved Stream Templates

2 participants